import pygame
def shua():
    pygame.display.flip()
def jing():
    pygame.draw.rect(screen,(0,0,0),(0,90,300,20),0)
    pygame.draw.rect(screen,(0,0,0),(0,190,300,20),0)
    pygame.draw.rect(screen,(0,0,0),(90,0,20,300),0)
    pygame.draw.rect(screen,(0,0,0),(190,0,20,300),0)
def hong(a,b):
    pygame.draw.rect(screen,(255,0,0),(a*100+25,b*100+25,50,50),0) 
def hei(a,b):
    pygame.draw.rect(screen,(0,0,0),(a*100+25,b*100+25,50,50),0) 
qipan=[[0,0,0],[0,0,0],[0,0,0]]

pygame.init()
pygame.display.set_caption("井字棋")
screen=pygame.display.set_mode([300,300])
screen.fill([255,255,255])
jing()
shua()
while True:
    for event in pygame.event.get():
        if event.type==pygame.QUIT:
            pygame.quit()
        elif event.type == pygame.MOUSEBUTTONUP:
                if event.button==1:
                    x,y=event.pos
